-- GENERATED SPELL FOR [Snake Wrap] --


function spell0_29742(pUnit, Event) --@Snake Wrap,n/a--
pUnit:FullCastSpellOnTarget(55128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29742', 570, 1)
end

function Sorts_29742(pUnit, Event)
local choix_sorts_29742 = math.random(0, 0)
if choix_sorts_29742 == 0 then
pUnit:RegisterEvent('spell0_29742', 1, 1)
end
end

function mob29742_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29742', math.random(1500, 3000), 1)
end

function mob29742_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29742_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29742_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29742, 1, 'mob29742_Action')
RegisterUnitEvent(29742, 2, 'mob29742_Leave')
RegisterUnitEvent(29742, 3, 'mob29742_Kill')
RegisterUnitEvent(29742, 4, 'mob29742_Die')
